import React from "react";
import {
  BrowserRouter,
  Redirect,
  Route,
  Switch,
  withRouter,
} from "react-router-dom";
import Banner1 from "./Banner1";
// import Banner2 from "./Banner2";
function Banner(props) {
  // React.useEffect(() => {}, [props.location.pathname]);
  return (
    // <BrowserRouter>
    <Switch>
      <Route path="/banner/banner1" component={Banner1} />
      {/* <Route path="/banner/banner2" component={Banner2} /> */}
    </Switch>
    // </BrowserRouter>
  );
}

export default withRouter(Banner);
